package com.qc.wintrax.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.qc.wintrax.R;
import com.qc.wintrax.activity.LineToCollectActivity;
import com.qc.wintrax.activity.ReleaseEventActivity;
import com.qc.wintrax.utils.IntentUtil;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * @author xiaobaodou
 * @Description:(发现页面) create at  2016/7/14 17:04
 **/
public class SearchFragment extends BaseFragment {


    @Bind(R.id.caiji_layout)
    LinearLayout caijiLayout;
    @Bind(R.id.fabu_layout)
    LinearLayout fabuLayout;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.tab03, container, false);
        ButterKnife.bind(this, view);
        return view;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }



    @OnClick({R.id.caiji_layout, R.id.fabu_layout})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.caiji_layout:
                Intent intent = new Intent(getActivity(), LineToCollectActivity.class);
                startActivity(intent);
                break;
            case R.id.fabu_layout:
                IntentUtil.startActivity(ReleaseEventActivity.class);
                break;
        }
    }
}
